package com.biz.primus.app.erpbridge.feign;

import com.biz.primus.model.misc.enums.SMSType;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jun.liu
 * @date 2017/9/19
 */
@FeignClient(qualifier = "miscFeignClient", name = "service-misc")
public interface MiscFeignClient {

    @ApiOperation("给指定手机号发短信")
    @PostMapping("soa/misc/sendSMS")
    void sendToMobile(@ApiParam("mobile") @RequestParam("mobile") String mobile,
                 @ApiParam("短信类型") @RequestParam("type") SMSType type);
}
